﻿using EasyDDD.Domain;

namespace EasyDDD.Application
{
    public interface IDomainEventHandler<in TDomainEvent> : INotificationHandler<TDomainEvent>
       where TDomainEvent : IDomainEvent
    {
        new Task Handle(TDomainEvent @event, CancellationToken cancellationToken);
    }
}